package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LIUYANJIAO
 * Date: 2024-06-05
 * Time: 12:33
 */
public class Main {
    public static void main(String[] args) {
        University u=new University();
        Icomputable c=u;
        IadvancedComputable a=u;
        System.out.println(u.add(1,2));
        System.out.println(c.add(1,2));
        System.out.println(a.divid(1,4));

    }
    public static void main2(String[] args) {
        Ieatable d=new Dog();
        Ieatable c=new Cat();
        d.sayFavoriteFood();
        c.sayFavoriteFood();
    }
    public static void main1(String[] args) {
        Icomputable c=new Student();
        System.out.println(c.add(2,38));
    }
}
